package com.easy.neo4j.exception;

import com.easy.common.exception.ExceptionEnum;

/**
 * @Author: CoolPro
 * @Description:
 * @Time: 2024-04-19 22:04
 **/

public class CheckParamException extends RuntimeException {
    ExceptionEnum exception;

    public CheckParamException(ExceptionEnum exception) {
        this.exception = exception;
    }

    public CheckParamException(String message, ExceptionEnum exception) {
        super(message);
        this.exception = exception;
    }

    public ExceptionEnum getException() {
        return exception;
    }

    public void setException(ExceptionEnum exception) {
        this.exception = exception;
    }
}
